﻿using System;
using System.Security.Cryptography;

namespace Odyssey.BouncyCastle.RSAUtil
{
    public interface IRSADispatch: IDisposable
    {
        string Encrypt(string data, RSAEncryptionPadding padding);

        string Decrypt(string data, RSAEncryptionPadding padding);

        string Sign(string data, HashAlgorithmName hashAlgorithmName, RSASignaturePadding padding);

        byte[] SignBytes(string data, HashAlgorithmName hashAlgorithmName, RSASignaturePadding padding);

        bool VerifySign(string data, string sign, HashAlgorithmName hashAlgorithmName, RSASignaturePadding padding);
    }
}
